spb/wp-spboucher-ai
Public
1import type { Metadata } from "next";2import { getLocale } from "@/lib/i18n/server";3import { t } from "@/lib/i18n";4import { graph } from "@/lib/papers/queries";5import { Constellation, type GEdge, type GNode } from "@/components/constellation";6export const revalidate = 300;7export async function generateMetadata(): Promise<Metadata> { const d = t(await getLocale()); return { title: d.map.title, description: d.map.lead, alternates: { canonical: "/research-map" } }; }8export default async function MapPage() {9 const locale = await getLocale(); const d = t(locale); const g = await graph();10 return (<div className="container py-10"><h1 className="text-3xl sm:text-4xl">{d.map.title}</h1><p className="meta mt-2 max-w-3xl">{d.map.lead}</p><div className="mt-6"><Constellation locale={locale} nodes={g.nodes as unknown as GNode[]} edges={g.edges as unknown as GEdge[]} height={640} /></div>11 <p className="text-xs text-fg-3 mt-3">{d.home.constellationLead}</p></div>);12}13